package com.anbinh.doctor;

import android.os.Bundle;
import android.view.Window;

import com.actionbarsherlock.app.SherlockFragmentActivity;
import com.anbinh.doctor.fragment.FragmentLogin;

public class LoginActivity extends SherlockFragmentActivity {

	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		getWindow().requestFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.activity_login);
		getSupportFragmentManager()
				.beginTransaction()
				.replace(R.id.fragment_container, FragmentLogin.newInstance(),
						"TagLogin").commit();
		// 0913045467
	}

	@Override
	public void onBackPressed() {
		if (getSupportFragmentManager().getBackStackEntryCount() > 0) {
			getSupportFragmentManager().popBackStack();
		} else {
			finish();
		}
	}
}
